package com.platform.qujia.service;


import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.platform.qujia.param.request.OrderPayInfo;
import com.platform.qujia.pojo.*;
import com.platform.qujia.pojo.wx.TopUpOrderCollect;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
public interface PosMachineService {
    SysUser selectUserByUserName(String userName);

    SysUser selectUserByUserId(String userId);

    //根据有枪查询加油员ID
    List<SysUser> selectOilPersonnelIdByGun(SysUser gun);

    //获取油站的油枪所绑定的打印设备
    StationDeviceManager getStationDeviceManager(StationDeviceManager stationDeviceManager);


    SysUser selectUserByUserIdCache(String userId);


    List<SysRole> selectUserRoleByUserId(String userId);

    List<SysRole> selectUserRoleByUserIdByPos(String userId,Integer stationId);

    StationDeviceManager getStationDeviceManagerNoCache(StationDeviceManager stationDeviceManager);

    /**
     * 获取充值订单集合
     * @param station
     * @return
     */
    List<OrderPayInfo> getTopUpOrderList(Station station);

    TopUpOrderCollect getRechargeRecordCollect(Station station);

}
